export default {
    loadLanguage: (params = { lang: ':lang' }) => `/lang/${params.lang}.lang`, //wait

    signUp: (params = {}) => `/users`, //post

    signIn: (params = {}) => `/session`, //post

    signOut: (params = {}) => `/session`, //delete

    validate: (params = { authenticate_token: ':authenticate_token' }) => `/users/authentications/${params.authenticate_token}`, //get

    setPassword: (params = { authenticate_token: ':authenticate_token' }) => `/users/authentications/${params.authenticate_token}`, //post

    seekBack: (params = {}) => `/users/authentications`, //post

    saveContent: (params = { uuid: ':uuid' }) => `/contents/${params.uuid}`, // post

    getTrasferState: (params = { content_uid: ':content_uid' }) => `/contents/${params.content_uid}/info`,

    contentList: (params = {}) => `/contents`,

    configJson: (params = { uuid: ':uuid' }) => `/contents/${params.uuid}/config`,

    sceneJson: (params = { uuid: ':uuid' }) => `/contents/${params.uuid}/scene`,

    profileInfo: (params = {}) => `/users/info`, //拉取 get 、 提交 post

    getAnnotations: (params = { uuid: ':uuid' }) => `/contents/${params.uuid}/annotations`,

    getTextures: (params = { uuid: ':uuid' }) => `/contents/${params.uuid}/textures`,

    productionConfig: (params = { uuid: ':uuid' }) => `/productions/${params.uuid}/config`,

    productionThumbnail: (params = { uuid: ':uuid' }) => `/productions/${params.uuid}/thumbnail_url`,

    productionScene: (params = { uuid: ':uuid' }) => `/productions/${params.uuid}/scene`,

    productionAnnotations: (params = { uuid: ':uuid' }) => `/productions/${params.uuid}/annotations`,

    contentInfo: (params = { uuid: ':uuid' }) => `/contents/${params.uuid}`, // get

    modifyContentInfo: (params = { uuid: ':uuid' }) => `/contents/${params.uuid}/info`, // post //params: name:string, desc:string, tags:list

    publishModel: (params = {}) => `/productions`, //post

    modifyContentStatus: (params = { uuid: ':uuid' }) => `/contents/${params.uuid}/status`, // post //status

    deleteContent: (params = { uuid: ':uuid' }) => `/contents/${params.uuid}`, //delete

    deleteProduction: (params = { uuid: ':uuid' }) => `/productions/${params.uuid}`, //delete

    meshesPolicy: (params = {}) => `/upload_policy/sources`, //get

    texturesPolicy: (params = {}) => `/upload_policy/textures`, //get

    thumbnailPolicy: (params = {}) => `/upload_policy/thumbnails`, //get

    avatarPolicy: (params = {}) => `/upload_policy/avatars`, //get

    vrSetting: (params = { uuid: ':uuid' }) => `/contents/${params.uuid}/vr_setting`, //post //get
    productionVrSetting: (params = { uuid: ':uuid' }) => `/productions/${params.uuid}/vr_setting`, //get

    // getBackgroundImage: (params = { uuid: ':uuid' }) => `/contents/${params.uuid}/background_url`,
    getProductionBackgroundImage: (params = { uuid: ':uuid' }) => `/productions/${params.uuid}/background_url`,

    mails: (params = {}) => `/mails`, //post {name,phone,content}

    getcaptcha: (params = {}) => `/getcaptcha`, //get

    updatePassword: (params = {}) => `/users/pwd`, // 提交 post

    getTags: (params = {}) => '/users/tags',

    autoRotate: (params = { content_uid: ':content_uid' }) => `/contents/${params.content_uid}/auto_rotate`, //get
    productionAutoRotate: (params = { uuid: ':uuid' }) => `/productions/${params.uuid}/auto_rotate`, //get

};
